package cn.xmy.demo01.service.impl;

import cn.xmy.demo01.dao.CommentsDao;
import cn.xmy.demo01.pojo.CommentMy;
import cn.xmy.demo01.service.CommentsDaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;
@Service
public class CommentDaoImplService implements CommentsDaoService {
    @Autowired
    CommentsDao commentDao;
    @Override
    public List<CommentMy> FindComment(String sectionId) throws SQLException, ClassNotFoundException {
        List<CommentMy>commentMIES=commentDao.FindComment(sectionId);
        return commentMIES;
    }
}
